package com.naiterui.ehp.bs.pharmacist.repository.mysql;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.pharmacist.entity.PharmacistRecommPrescription;

/**
 * @Description 处方文件
 * @Author gongbaoqiang
 * @Date 2019/12/5 8:41 PM
 */
public interface RecommPrescriptionRepository extends BaseJpaRepository<PharmacistRecommPrescription, Long> {

    /**
     * <pre>
     *     根据处方id和文件类型查询记录
     * </pre>
     *
     * @param recomId
     * @param type
     *
     * @return
     */
    PharmacistRecommPrescription findFirstByRecommendIdAndType(Long recomId, Integer type);

}
